home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / gfx / show / svoUtah22.lha / svoUtahRLE / source / svobject.h < prev    next >
C/C++ Source or Header  |  1995-04-14  |  8KB  |  199 lines

  1.  
  2.  /* svobject.h
  3.     - Include File for UtahRLE.svobject -
  4.     (c) 1993-95 by Andreas R. Kleinert
  5.     Last changes : 14.04.1995
  6.  */
  7.  
  8. #ifndef SVOBJECT_H
  9. #define SVOBJECT_H
  10.  
  11. #ifndef SUPERVIEW_SUPERVIEWBASE_H
  12. #include <superview/superviewbase.h>
  13. #endif  /* SUPERVIEW_SUPERVIEWBASE_H */
  14.  
  15. #ifndef SVOBJECTS_SVOBJECTBASE_H
  16. #include <svobjects/svobjectbase.h>
  17. #endif  /* SVOBJECTS_SVOBJECTBASE_H
  18.  
  19. #ifndef SVDRIVERS_SVDRIVERBASE_H
  20. #include <svdrivers/svdriverbase.h>
  21. #endif  /* SVDRIVERS_SVDRIVERBASE_H
  22.  
  23. #ifndef INTUITION_INTUITIONBASE_H
  24. #include <intuition/intuitionbase.h>
  25. #endif /* INTUITION_INTUITIONBASE_H */
  26.  
  27. #ifndef EXEC_MEMORY_H
  28. #include <exec/memory.h>
  29. #endif /* EXEC_MEMORY_H */
  30.  
  31. #ifndef EXEC_LISTS_H
  32. #include <exec/lists.h>
  33. #endif /* EXEC_LISTS_H */
  34.  
  35. #ifndef EXEC_INTERRUPTS_H
  36. #include <exec/interrupts.h>
  37. #endif /* EXEC_INTERRUPTS_H */
  38.  
  39. #ifndef GRAPHICS_GFXBASE_H
  40. #include <graphics/gfxbase.h>
  41. #endif /* GRAPHICS_GFXBASE_H */
  42.  
  43. #ifndef GRAPHICS_VIEW_H
  44. #include <graphics/view.h>
  45. #endif /* GRAPHICS_VIEW_H */
  46.  
  47.  
  48. #include <proto/exec.h>
  49. #include <proto/dos.h>
  50. #include <proto/intuition.h>
  51. #include <proto/graphics.h>
  52. #include <proto/utility.h>
  53. #include <proto/superview.h>
  54. #include <proto/svdrivers.h>
  55. #include <proto/superviewsupport.h>
  56.  
  57. #include "UtahRLE.h"
  58.  
  59.  
  60. /* *************************************************** */
  61. /* *                             * */
  62. /* * SV_SuperVisor.c : Functions                 * */
  63. /* *                             * */
  64. /* *************************************************** */
  65.  
  66. extern struct SVObjectHandle * __saveds __asm SVO_AllocHandle( register __a1 APTR future_a1);
  67. extern void __saveds __asm SVO_FreeHandle( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  68. extern void __saveds __asm SVO_CloseDisplay( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  69. extern void __saveds __asm SVO_FreeResources( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  70.  
  71.  
  72. /* *************************************************** */
  73. /* *                             * */
  74. /* * SV_WriteSubs.c : ...                            * */
  75. /* *                             * */
  76. /* *************************************************** */
  77.  
  78. extern ULONG __saveds __asm SVO_Write( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  79.  
  80.  
  81. /* *************************************************** */
  82. /* *                             * */
  83. /* * SV_InfoSubs.c : ...                             * */
  84. /* *                             * */
  85. /* *************************************************** */
  86.  
  87. extern ULONG __saveds __asm SVO_FileInfoRequest( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 struct Window *window, register __a3 ULONG future);
  88. extern ULONG __saveds __asm SVO_CheckFileType(register __a1 BPTR handle, register __a2 UBYTE *filename, register __a3 APTR future);
  89.  
  90.  
  91. extern void __saveds __stdargs SVLI_SPrintf(APTR buffer, char *formatstring, ...);
  92.  
  93.  
  94. /* *************************************************** */
  95. /* *                             * */
  96. /* * SV_ChangeSubs.c : ...                           * */
  97. /* *                             * */
  98. /* *************************************************** */
  99.  
  100. extern ULONG __saveds __asm SVO_SetAccessMode(  register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __d1 ULONG mode);
  101. extern ULONG __saveds __asm SVO_SetWriteSubType( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 ULONG akt_type, register __a3 APTR future);
  102. extern ULONG __saveds __asm SVO_SetScreenType( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __d1 ULONG type, register __a2 APTR future);
  103. extern ULONG __saveds __asm SVO_SetWindowFlags( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __d1 ULONG flags, register __a2 APTR future);
  104. extern ULONG __saveds __asm SVO_SetWindowIDCMP( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __d1 ULONG idcmp, register __a2 APTR future);
  105. extern struct Screen * __saveds __asm SVO_GetScreenAddress( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 APTR future);
  106. extern struct Window * __saveds __asm SVO_GetWindowAddress( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 APTR future);
  107. extern ULONG __saveds __asm SVO_SetScreenAddress( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 struct Screen *writescreen, register __a3 APTR future);
  108. extern ULONG __saveds __asm SVO_SetWindowAddress( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 struct Window *writewindow, register __a3 APTR future);
  109. extern ULONG __saveds __asm SVO_SetReadName( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 char *readname, register __a3 APTR future);
  110. extern ULONG __saveds __asm SVO_SetWriteName( register __a1 struct SVObjectHandle *SVObjectHandle_a1, register __a2 char *writename, register __a3 APTR future);
  111.  
  112.  
  113. /* *************************************************** */
  114. /* *                             * */
  115. /* * SV_ShowSubs.c : ...                             * */
  116. /* *                             * */
  117. /* *************************************************** */
  118.  
  119. extern ULONG __saveds __asm SVO_Show( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  120.  
  121.  
  122. /* *************************************************** */
  123. /* *                             * */
  124. /* * SV_BufferSubs.c : ...                           * */
  125. /* *                             * */
  126. /* *************************************************** */
  127.  
  128. extern ULONG __saveds __asm SVO_ReadToGfxBuffer( register __a1 struct SVObjectHandle *SVObjectHandle_a1);
  129. extern ULONG __saveds __asm SVO_GetGfxBuffer(    register __a1 struct SVObjectHandle *SVObjectHandle_a1,
  130.                                                  register __a2 struct SV_GfxBuffer **bufferhandle,
  131.                                                  register __a3 ULONG future);
  132. extern ULONG __saveds __asm SVO_SetGfxBuffer(    register __a1 struct SVObjectHandle *SVObjectHandle_a1,
  133.                                                  register __a2 struct SV_GfxBuffer *bufferhandle,
  134.                                                  register __a3 ULONG future);
  135.  
  136.  
  137. /* *************************************************** */
  138. /* *                             * */
  139. /* * Additional Base Declarations             * */
  140. /* *                             * */
  141. /* *************************************************** */
  142.  
  143. extern struct SVObjectBase  *SVObjectBase;
  144.  
  145. extern struct ExecBase        *SysBase;
  146. extern struct DosLibrary    *DOSBase;
  147. extern struct IntuitionBase *IntuitionBase;
  148. extern struct GfxBase        *GfxBase;
  149. extern struct Library       *UtilityBase;
  150. extern struct SVSupportBase *SVSupportBase;
  151.  
  152.  
  153.  /* some useful Defines */
  154.  
  155. #define ColorAcc(x) (1<<(x))
  156.  
  157.  
  158.  /* structures for File-Handling */
  159.  
  160. struct SVObjectHandle                   /* STRICTLY PRIVATE */
  161. {
  162.  BPTR                ah_filehandle_source;
  163.  FILE               *ah_FILE_source;
  164.  
  165.  BPTR                ah_filehandle_dest;
  166.  FILE               *ah_FILE_dest;
  167.  
  168.  char               *ah_ReadName;
  169.  char               *ah_WriteName;
  170.  
  171.  struct Screen      *ah_Screen;
  172.  struct Screen      *ah_WriteScreen;
  173.  
  174.  struct Window      *ah_Window;
  175.  struct Window      *ah_WriteWindow;
  176.  
  177.  ULONG               ah_ScreenType;
  178.  ULONG               ah_WindowFlags;
  179.  ULONG               ah_WindowIDCMP;
  180.  
  181.  ULONG               ah_FileType;           /* SV_FILETYPE_ ... */
  182.  ULONG               ah_Type;               /* SV_SUBTYPE_  ... */
  183.  ULONG               ah_WriteMode;          /* SV_SUBTYPE_  ... */
  184.  ULONG               ah_Medium;             /* AKO_MEDIUM_  ... */
  185.  
  186.  APTR                ah_ramhandle;
  187.  
  188.  /* For SVDriver Support */
  189.  
  190.  struct SVDriverBase   *ah_DriverBase;  /* Library-Base of svobject.    */
  191.  struct SVD_DriverNode *ah_SVDriver;
  192.  APTR                   ah_SVDriverHandle;
  193.  
  194.  struct SV_GfxBuffer   *ah_SV_GfxBuffer;  /* for read-/write-access   */
  195.  struct SV_GfxBuffer   *ah_SV_GfxBuffer2; /* as source for conversion */
  196. };
  197.  
  198. #endif /* SVOBJECT_H */
  199.